import { Controller, UseFilters, UseInterceptors, UsePipes, ValidationPipe, UseGuards } from "@nestjs/common";
import { ApiTags, ApiBearerAuth } from "@nestjs/swagger";
import { Crud, CrudController } from "@nestjsx/crud";
import { Area } from "libs/db/entity/area.entity";
import { HttpExceptionFilter } from "../_filter/http-exception.filter";
import { LoggingInterceptor } from "../_interceptor/logging.interceptor";
import { AreaCrudOps } from "./area-crud-ops";
import { AreaService } from "./area.service";
import { AuthGuard } from "@nestjs/passport";





@Crud(AreaCrudOps)
@UseFilters(HttpExceptionFilter)
@UsePipes(ValidationPipe)
@UseInterceptors(LoggingInterceptor)
@UseGuards(AuthGuard('jwt-web'))
@ApiBearerAuth()
@ApiTags('信息管理 - 区信息管理')   //标签
@Controller('area')
export class AreaController implements CrudController<Area> {
  constructor(public service: AreaService) {
  }
}
